using System.Collections.Generic;

namespace Cmc.RabbitMQ.Base
{
    public interface IMQConnection
    {
        ConnectConfig ConnectConfig { get; }
        string HostName { get; }
        List<Consumer> Consumers { get; }
        bool Connected();
        bool PublishByRoutingKey(string routingKey, object message);
        bool Publish(string queneName, object message);
        string Consume(Consumer consumer);
    }
}